<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/css/plugins/layui/css/layui.css}">
</head>
<body>
<div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">学生名称</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="stuName" name="stuName" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">所属年级</label>
            <div class="layui-input-inline layui-input-wrap">
                <select id="gradeId" name="gradeId" th:with="grades=${@gradeService.list()}">
                    <option value="">请选择</option>
                    <option th:each="grade : ${grades}" th:text="${grade.gradeName}" th:value="${grade.gradeId}"></option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">所属班级</label>
            <div class="layui-input-inline layui-input-wrap">
                <select id="claddId" name="claddId" th:with="cladds=${@claddService.list()}">
                    <option value="">请选择</option>
                    <option th:each="cladd : ${cladds}" th:text="${cladd.claddName}" th:value="${cladd.claddId}"></option>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">所属宿舍</label>
            <div class="layui-input-inline layui-input-wrap">
                <select id="hostelId" name="hostelId" th:with="hostels=${@hostelService.list()}">
                    <option value="">请选择</option>
                    <option th:each="hostel : ${hostels}" th:text="${hostel.hostelName}" th:value="${hostel.hostelId}"></option>
                </select>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/js/plugins/layui/layui.js}"></script>
</body>
</html>
